package com.cuijq.ms.compose.v3;

/**
 * @author by CuiJQ
 * @Classname Employee
 * @Description Employee Description
 * @Date 2021/5/26 23:38
 */
public class Employee extends HumanResource {

  public Employee(long id, double salary) {
    super(id);
    this.salary = salary;
  }

  @Override
  public double calculateSalary() {
    return salary;
  }
}

